import Vue from 'vue'
import VueRoute from 'vue-router'
import Navi from '../views/NaviGation'
import FindHome from '../views/FindHome'
import Message from '../views/Message'
import Mymessage from '../views/MyMessage'
import login from '../views/Login'
import regi from '../views/Register'
import ConT from '../views/ConTent'
import city from '../views/CityList'
import coll from '../views/Collect'
import cons from '../views/consultation'
Vue.use(VueRoute)

const router = new VueRoute({
    linkActiveClass:'active',
    routes:[
        {path:'/',redirect:'/Navi'},
        {path:'/Navi',
        component:Navi,
        redirect:'/cont',
        children:[
            {path:'/findhome',component:FindHome},
            {path:'/Mymessage',component:Mymessage},
            {path:'/cont',component:ConT},
            {path:'/cons',component:cons}
        ]
    },
    {path:'/login',component:login},
    {path:'/regi',component:regi},
    {path:'/city',component:city},
    {path:'/message/:code?',component:Message},
    {path:'/coll',component:coll},
    
    ]
})

export default router